package testing;
import java.io.File;

import javax.swing.JFrame;
import javax.swing.JPanel;

import app.*;

public class SaveToFileTest {

	public static void main(String[] args) {
		Cookbook cookbook = new Cookbook();
		Recipe recipe = null;
		try{
			recipe = cookbook.createRecipeFromDB(21);
		}catch (Exception e){
			e.printStackTrace();
		}
		File file = new File("C:\\Users\\Us3less\\Desktop\\aRecipe.txt");
		cookbook.saveRecipeToTxtFile(recipe, file);
	}

}
